package com.itheima;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try {
            System.out.println("请输入一个整数");
            int num = sc.nextInt();
            if (num % 2 == 0) {
                System.out.println(num);
            } else {
                throw new Test6Exception("请输入一个数");
            }
        } catch (Test6Exception e) {
            e.printStackTrace();
        }
        System.out.println("成功了吗");
    }
}
